package com.mt.roll.wms.service;

import com.mt.roll.core.dal.entity.EquipmentRecipe;
import com.mt.roll.core.params.IdParam;
import com.mt.roll.core.vo.R;
import com.mt.roll.wms.params.EquipmentRecipeParam;
import com.mt.roll.wms.params.EquipmentRecipeQueryParam;
import com.mt.roll.wms.params.RecipeActiveSend;
import com.mt.roll.wms.params.RecipeListParam;
import com.mt.roll.wms.vo.EquipmentRecipeVo;

import java.util.List;

/**
 * @Desc: ""
 * @Author: caixiang
 * @DATE: 2020/12/29 19:54
 */
public interface EquipmentRecipeService {

    R<List<EquipmentRecipe>> findAllByEquipmentTypeAndRecipeName(EquipmentRecipeQueryParam equipmentRecipeQueryParam);
    R<Boolean> create(EquipmentRecipeParam equipmentRecipeParam);
    R<Boolean> update(EquipmentRecipeParam equipmentRecipeParam);
    R<Boolean> delete(IdParam idParam);
    R<EquipmentRecipeVo> findById(IdParam idParam);
    /*R<String> getequipmentRecipeForWorkOrder(Long workOrderId, Long equipmentId);*/

    R<Boolean> simulationForActiveRecipe(RecipeActiveSend recipeActiveSend);


    R<Boolean> updateRecipeListByToolName(RecipeListParam recipeListParam);

}
